cmake_minimum_required(VERSION 3.15)
project(libharu_study)
set(CMAKE_CXX_STANDARD 11)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
# 搜索指定目录下源文件
file(GLOB SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/*.c)
# 包含头文件路径
include_directories(${PROJECT_SOURCE_DIR}/include)

add_executable(app ${SRC})

# 链接libharu库
target_link_libraries(app ${PROJECT_SOURCE_DIR}/lib/libhpdf.dll)

# message(STATUS "source path: ${PROJECT_SOURCE_DIR}")
# message(STATUS "source path: ${CMAKE_CURRENT_SOURCE_DIR}")
